using System;
using System.Collections.Generic;
using System.Text;
using XinBang.Entity;
using XinBang.DAL;

namespace XinBang.BLL
{
    public class RecordBL
    {
        private IRecordDA<Record> rd = BusinessLogicFactory.GetRecordDA();

        public IList<Record> GetRecordsByOrderId(int oid)
        {
            return rd.GetRecordsByOrderId(oid);
        }

        public void InsertRecord(Record record)
        {
            rd.Insert(record);
        }
        public void UpdateRecord(Record record)
        {
            rd.Update(record);
        }
    }
}
